how to get properties from json in c#

101

how to get properties from json in c# -

        var query = parsedStr.Descendants().OfType<JProperty>().Where(p => p.Value.Type != JTokenType.Array && p.Value.Type != JTokenType.Object);
        foreach (var property in query)
            Console.WriteLine(property);

Comments

Submit
0 Comments